@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${item.id}">

            <div class="row">
                <#input id="name" name="文件名称" value="${item.name}" underline="true"/>
                <#input id="type" name="文本类型" value="${item.type}" underline="true"/>

                <form id = "fileUpdate" method = "POST" enctype="multipart/form-data" action="/updateFile">
                    选择文件 <input type="file" name="file"/>
                    <#input id="name" name="文件名称" value="${item.name}" type="hidden" underline="true"/>
                    <#input id="type" name="文本类型" value="${item.type}" type="hidden" underline="true"/>
                    <input type="submit"  value="修改文件">
                </form>

            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="UploadInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="UploadInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/file/upload/upload_info.js"></script>
@}
